package com.graduationproject.examonline.utils;

// 返回的结果
public class Result {
    private Integer status;
    private Integer code;
    private String message;
    private String token;
    private Object data;

    public Result(Integer status, Integer code, String message, String token, Object data) {
        this.status = status;
        this.code = code;
        this.message = message;
        this.token = token;
        this.data = data;
    }

    public Result(Integer status, Integer code, String message, String token) {
        this.status = status;
        this.code = code;
        this.message = message;
        this.token = token;
    }

    public Result(Integer status, Integer code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }

    public Result(Integer status, Integer code, Object data) {
        this.status = status;
        this.code = code;
        this.data = data;
    }

    public Result(Integer status, Integer code, String message, Object data) {
        this.status = status;
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
